﻿using Microsoft.Web.Administration;
using System;
using System.Collections.Generic;
using System.Text;

namespace WebSvrUpdaterCore.Models
{
    public class SiteModel
    {
        public long Id { get; set; }

        public string SiteName { get; set; }

        public bool AutoStart { get; set; }

        public string PhysicalPath { get; set; }

        public bool EnableHttps { get; set; }

        /// <summary>
        /// 程序池名称
        /// </summary>
        public string AppPoolName { get; set; }

        public int Status { get; set; }

        public SiteLimit Limits { get; set; } 
        
        public List<SiteBindingModel> Bindings { get; set; }
        
    }

    public sealed class SiteLimit
    {
        public long ConnectionTimeout { get; set; }
        public long MaxBandwidth { get; set; }
        public long MaxConnections { get; set; }
        public long MaxUrlSegments { get; set; }
    }
}
